package houserules;

import java.io.Serializable;

import logic.moves.GameMove;

public class NumDiceOneMove implements Serializable, HouseRuleInterface {
	
	// =========== Fields ============
	private static final long serialVersionUID = 1L;
	private int max_num;
	private int def_val = 5;

	// ======== Constructors =============
	public NumDiceOneMove(int max_num){
		this.max_num = max_num;
	}
	public NumDiceOneMove(){
		this.max_num = def_val;
	}
	
	// ========== Functions ==============

	/**
	 * return true if current maximal number of players equal to default value
	 */
	public boolean isDefault() {
		return max_num == def_val ;
	}

	/**
	 * change maximal number of players to default value (5)
	 */
	public int restoreDefault() {
		return max_num = def_val;
	}
	/**
	 * 
	 * @return current maximal number of players
	 */
	public int getMaxNum(){
		return max_num;
	}
	public boolean isLegal(GameMove gameMove) {
		// TODO Auto-generated method stub
		return true;
	}
}
